import api from '@/utils/http'
import type { HomeFormResponse, HomeChartResponse } from './model/homeModel'

export function homeGetFormData(): Promise<HomeFormResponse> {
  return api.post({
    url: '/index/indexStats'
  })
}

export function homeGetChartData(): Promise<HomeChartResponse> {
  return api.post({
    url: '/index/indexCharts'
  })
}
